Skip to content

#feat Better Lute Autodetection#63

Merged
wmccrthy merged 5 commits intomainfrom
fix-lute-auto-detection
Jan 30, 2026
Merged

#feat Better Lute Autodetection#63
wmccrthy merged 5 commits intomainfrom
fix-lute-auto-detection

Conversation

@wmccrthy
Copy link
Owner

@wmccrthy wmccrthy commented Jan 30, 2026

Problem

The auto-detection strategy to find a lute executable on the user's system is currently shallow and hard-coded.

It:

  • looks for lute in the foreman bin (workspace-dependent)
  • if not found, looks for a hard-coded (and outdated) lute version in rokit tool storage (horrible)
  • falls back to system path

Solution

Use a more exhaustive strategy to find existing lute paths:

  • check foreman / rokit bin, if found use that executable
  • fallback to foreman / rokit tool storage, picking latest lute version (if any)
  • finally, fall back to system path

We also confirm that the found paths are actually executable, since foreman/rokit bins can be stale.

There are still some issues with this, for example, the fact that our first check is in the foreman/rokit bin, which is workspace dependent and therefore prone to using unsupported lute versions. In general, however, it is a much better start

@wmccrthy wmccrthy marked this pull request as ready for review January 30, 2026 21:55
@wmccrthy wmccrthy merged commit dbc0b2d into main Jan 30, 2026
4 checks passed
@wmccrthy wmccrthy deleted the fix-lute-auto-detection branch January 30, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant